public class Student extends People{
    public String classroom = "113";

//    public void show(){
////        System.out.println(super.name);
//        eat();
//    }
//    public void eat(){
//        System.out.println("EAT");
//    }
    public Student() {
        super();
    }

    public Student(String classroom) {
        this.classroom = classroom;
    }

    public Student(String name, int age, String classroom) {
        //子类先对父类中的元素进行初始化后，在对子类自己的变量进行初始化
        super(name, age);
        this.classroom = classroom;
    }

    public void study(){
        System.out.println("studying...");
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void StuShow(){
        System.out.println("StuShow...");
    }
}
